#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "regexphighlighter.h"
#include "qdynamichighlighter.h"
#include <QFileDialog>
#include <QInputDialog>
#include <QMessageBox>
#include <QClipboard>
#include "qparamdb.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    QRegExp regExp;
    RegexpHighlighter *pHighlighter;
    QDynamicHighlighter *pDynHighlighter;
    QParamDB *pParamDB;

public slots:
    void CheckRegexpValidity();
    void ChangePattern();
    void LoadRegexpByName(const QString name);
    void TestSlot();
    void UpdateCombobox();
private slots:
    void on_aLoad_triggered();
    void on_aReplaceStart_triggered();
    void on_aAddRegexp_triggered();
    void on_aDeleteRegexp_triggered();
    void on_aCopyToClipboard_triggered();
};

#endif // MAINWINDOW_H
